package com.ledi.guns.common.persistence.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ledi.guns.common.persistence.model.Bill;
import com.ledi.guns.common.persistence.model.vo.BillDetailVo;
import com.ledi.guns.common.persistence.model.vo.BillVo;
import com.ledi.guns.common.persistence.model.vo.CountTotal;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ledi
 * @since 2017-11-30
 */
public interface BillMapper extends BaseMapper<Bill> {

	List<BillDetailVo> selectBillDetaileById(Map map);

	int getBillCount(Map<String, Object> search);

	List<BillVo> getBillList(Page<BillVo> page, Map<String, Object> search);

	BillVo getBillInfo(Map<String, Object> map);

	CountTotal getCountTotal(Map<String, Object> map);

	List<Bill> pageFaceList(Page<Bill> page, Map search);

	List<Bill> selectListWithTeacher(@Param("schoolId") Long schoolId, @Param("userId") Integer userId);

}
